package com.lzy.product.constants;

/**
 * Description:订单业务状态的描述
 */

public enum OrderSatusDesEnum {

	/**
	 * 产品订单状态
	 */
	OUTDOOR_NO_PAY("66",0, "待支付"),
	OUTDOOR_COMPLETE("66", 2, "已完结"),
	OUTDOOR_CAMP("66", 4, "已关闭");

	/**
	 * 
	 * @param type 业务类型
	 * @param status 订单状态
	 * @param des 描述
	 */
    OrderSatusDesEnum(String type, Integer status, String des) {
		this.type = type;
		this.status = status;
		this.des = des;
	}

	/**
	 * 获取des描述
	 * 
	 * @param type
	 * @param status
	 * @return
	 */
	public static String getByTypeAndStatus(String type, Integer status) {
		for (OrderSatusDesEnum c : OrderSatusDesEnum.values()) {
			if (c.getType().equals(type) && c.getStatus().equals(status)) {
				return c.getDes();
			}
		}
		return "";
	}

	// 业务类型
	private String type;
	// 订单状态
	private Integer status;
	// 描述
	private String des;

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getDes() {
		return des;
	}

	public void setDes(String des) {
		this.des = des;
	}
}
